package com.qf.zyh.dao;

import com.qf.zyh.entity.UserRoleKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleMapper {
    int deleteByPrimaryKey(UserRoleKey key);

    int insert(UserRoleKey record);

    int insertSelective(UserRoleKey record);

    int deleteByUserId(@Param("userId") Integer userId);

    int addUserRole(@Param("userId") Integer userId,@Param("roleIds") Integer[] roleIds);

    List<Integer> getAll(@Param("userId") Integer userId);
}